import java.util.Iterator;
import java.util.*;

public class Main {

    //1
    //1 1
    //1 2 1
    //1 3 3 1
    //1 4 6 4 1
    public List<List<Integer>> yhsj(int numRows) {
        List<List<Integer>> ret = new ArrayList<>();
        List<Integer> row=new ArrayList<>();
        row.add(1); //处理第一行为 1
        ret.add(row);
        //处理中间的元素，从第二行开始
        for (int i = 1; i <numRows ; i++) {
            List<Integer> curRow=new ArrayList<>();
            curRow.add(1);//新的一行第一个值
            List<Integer> prevRow=ret.get(i-1);
            for (int j = 1; j < i; j++) {
                int x=prevRow.get(j)+prevRow.get(j-1);
                curRow.add(x);
            }
            curRow.add(1);//新的一行最后一个值1
            ret.add(curRow);
        }
        return ret;
    }

    public static void main(String[] args) {

    }
    //删除第一个字符串当中出现的所有的第二个字符串的字符
    public  static  List<Character>func(String str1,String str2) {
        List<Character> list = new ArrayList<>();
        for (int i = 0; i < str1.length(); i++) {
            char ch = str1.charAt(i);
            if (!str2.contains(ch + "")) {
                list.add(ch);
            }
        }
        return list;
    }
    public static void main2(String[] args) {
        String str1 = "welcome to cvte";
        String str2 = "come";
        List<Character> ret = func(str1, str2);
        for (char ch : ret) {
            System.out.print(ch);
        }
    }
    public static void main1(String[] args) {

        MyArrayList myArrayList=new MyArrayList ();
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.add(5);
        myArrayList.display();

        for (int i = 0; i < myArrayList.size(); i++) {
            System.out.println(myArrayList.get(i)+" ");
        }
        System.out.println();
    }
}